package com.rong.creatmodel.singlemodel.lazy;

/**
 * 静态内部类实现懒汉式
 */
public class SingleTonLazy3 {

    private SingleTonLazy3(){

    }

    // 静态内部类
    private static class SingleHolder{
        private static final SingleTonLazy3 INSTANCE = new SingleTonLazy3();
    }

    // 对外提供访问的方法
    public static SingleTonLazy3 getInstance(){
        return SingleHolder.INSTANCE;
    }
}
